import { getAction, deleteAction, putAction, postAction, httpAction } from '/src/api/manage.js'

//查询监控
let queryMonitor = (params) => getAction('device/dbDeviceMonitor/list?pageSize=1000', params)

//查基地下有几个项目
let queryBaseMes = (params) => getAction("asset/dbAssetProjectAudit/list", params)

//查基地id查基地信息 - 基地击级别
let queryBaeDetails = (params) => getAction("/base/dbBase/queryById", params)

//项目明细
let queryProjectDetails = (params) => getAction("cs/dbAssetDetail/list", params)

//基地下所有的楼栋
let baseBuildings = (params) => getAction('base/dbBuilding/list', params)

//楼栋单元
let buildingUnit = (params) => getAction('base/dbBuildingUnit/list', params)

//单元房号
let unithouse = (params) => getAction('base/dbUnitHouse/list', params)

//局级 - 基本信息

let queryBaeDetailsPlus = (params) => getAction("apiData/dpStatistics", params)

//获取房屋数据token
let getIntegratedMeshLayerToken = (params) => getAction("/api/getArcGisToken", params)

//局级 - 项目立项管理
let getBureauProjectManagement = (params) => getAction("asset/dbAssetProjectAudit/countAsset", params)

//局级 - 切换基地模型
let getBases = (params) => getAction("sys/sysDepart/queryUserDepart", params)

//单位下的基地
let getUnitBase = (params) => getAction("base/dbBase/list", params)

//单位下的独立房产
let getUnitIndependentHouse = (params) => getAction("base/dbOtherIndependentHouse/list", params)


export {
    queryMonitor,
    queryBaseMes,
    queryBaeDetails,
    queryProjectDetails,
    baseBuildings,
    buildingUnit,
    unithouse,
    queryBaeDetailsPlus,
    getIntegratedMeshLayerToken,
    getBureauProjectManagement,
    getBases,
    getUnitBase,
    getUnitIndependentHouse
}
